import request from '@/utils/request'
import user from "../../store/modules/user";

export function Test() {
    return request({
        url: '/priceList/test',
        method: 'get',
    })
}

export function addPriceList(data) {
    return request({
        url: '/priceList/add',
        method: 'post',
        data:data
    })
}

export function selectPriceList(userId,customerName){

    return request({
        url:'/priceList/select?userId='+userId+'&customerName='+customerName,
        method:'get'
    })
}
export function getUser() {
    return request({
        url: '/priceList/selectUser',
        method: 'post',
    })
}

export function toExamine(plId,newStatus){

   return request({
       url:'/priceList/toExamine?plId='+plId+'&newStatus='+newStatus,
       method:'get',
   })
}

